import { createRouter, createWebHistory } from 'vue-router'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
  
    {
      path: '/login',
      name: 'login',
      component: () => import('../views/LoginView.vue'),
    },
    {
      path: '/Login1',
      name: 'Login1',
      component: () => import('../views/Login1.vue'),
    
    
   
    },
    {
      path: '/deng',
      name: 'deng',
      component: () => import('../views/dengView.vue'),
    
    
   
    },
    {
      path: '/main',
      name: 'main',
      component: () => import('../views/MainView.vue'),
      children: [
        {
          path: '/customer/add',
          name: 'customerAdd',
          component: () => import('../views/CustomerAdd.vue'),
        },
       
        {
          path: '/TypeList',
          name: 'TypeList',
          component: () => import('../views/TypeShowListView.vue'),
        
        
       
        },
       
        {
          path: '/TypeUpdate',
          name: 'TypeUpdate',
          component: () => import('../views/TypeUpdateView.vue'),
        
        
       
        },
        {
          path: '/add',
          name: 'add',
          component: () => import('../views/add.vue'),
        
        
       
        },
      
        {
          path: '/map',
          name: 'map',
          component: () => import('../views//Map.vue'),
        
        },
        {
          path: '/log',
          name: 'log',
          component: () => import('../views/logView.vue'),
        
        },
       
        {
          path: '/Menu',
          name: 'Menu',
          component: () => import('../views/MenuView.vue'),
        
        },
        {
          path: '/li',
          name: 'li',
          component: () => import('../views/liView.vue'),
        
        },
        {
          path: '/ye',
          name: 'ye',
          component: () => import('../views/yeView.vue'),
        
        },
        {
          path: '/tree',
          name: 'tree',
          component: () => import('../views/TreeView.vue'),
        
        },
        {
          path: '/den',
          name: 'den',
          component: () => import('../views/denView.vue'),
        
        },
      
          
      
       
       
      
      
      
      ]
      
    },
    {
      path: '/ky',
      name: 'ky',
      component: () => import('../views/kyView.vue'),
    
    },
    {
      path: '/sho',
      name: 'sho',
      component: () => import('../views/showView.vue'),
    
    },
    
   

  ],
})

export default router
